/**
 * The class ValueToken extends the class CalcToken and represents a token which has a value
 * Meaning a token which is a number and not an arithmic operation
 * @author Michael Fildstein, ID: 309161594     
 * @author Tomer Ben Rachel ID: 021982475     
 */

public class ValueToken extends CalcToken {
	
	private double val;
 

/**
 * Copy Contructor that creates a new ValueToken using a double data type
 * @param val A double data type representing the value to be copied
 */
 
	public ValueToken(double val){
		this.val = val;
	}
	
/**
 * The getterr method getValue returns the value of the ValueToken
 * @return a double data type representing the value of the ValueToken
 */  
   
	public double getValue(){
		return val;
	}
	
   
 /**
 * The method toString returns a string representing the value of the ValueToken
 * @return a string data type representing the value of the ValueToken
 */
   
   
	public String toString(){
		String valueString;
		valueString = Double.toString(val);
		return valueString;
	}

}
